package com.shop.coupon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.common.core.domain.Result;
import com.shop.coupon.domain.Coupon;
import com.shop.coupon.domain.vo.CouponHistoryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CouponMapper extends BaseMapper<Coupon> {

    //发布优惠券
    Integer couponUpdPublish(@Param("id") Long id);
    //停止发布优惠券
    Integer couponUpdStop(@Param("id") Long id);

    List<Coupon> getSelectCoupon();

    Coupon getList();

    List<CouponHistoryVo> getCouponByUserId(Long userId);
}
